#include<stdio.h>
#include<string.h>
struct student{
	int id;
	char name[10];
	struct student *next;
};
int main(){
	struct student a,b,c,*head,*p;
	a.id=1001;
	strcpy(a.name,"jack");
	a.next=&b;
	b.id=1002;
	strcpy(b.name,"annie");
	b.next=&c;
	c.id=1003;
	strcpy(c.name,"lucy");
	c.next=NULL;
	head=&a;
	p=head;
	while(p){
		printf("id=%d,name=%s\n",p->id,p->name);
		p=p->next;
	}
	return 0;

}
